/**
 * @description 延时器
 * @author xujs
 */

export default function promise(time = 0) {
	let promise = new Promise( resolve => {
		setTimeout(() => {
			resolve()
		}, time)
	})
	return promise
}